package com.yj.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yj.dao.IProductDao;
import com.yj.entity.Product;
import com.yj.entity.ProductCategory;
import com.yj.entity.ProductDto;

@Service
public class IProductServiceImpl implements IProductService{

	@Autowired
	private IProductDao productDao;
	public List<Product> queryProductByPage(ProductDto dto) {
		// TODO Auto-generated method stub
		return productDao.queryProductByPage(dto);
	}
	public int countProduct(ProductDto dto) {
		// TODO Auto-generated method stub
		return productDao.countProduct(dto);
	}
	public List<ProductCategory> selAll() {
		// TODO Auto-generated method stub
		return productDao.selAll();
	}
	public int insertProduct(Product pro) {
		// TODO Auto-generated method stub
		return productDao.insertProduct(pro);
	}

}
